package com.linko.intelligent.sys.pojo.po;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@TableName("my_user")
public class User {

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id", position = 0)
    @TableId
    private Long id;

    private Long del;

    /**
     * 创建人id
     */
    @ApiModelProperty(value = "创建人id", position = 2)
    private Long creatorId;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", position = 3)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.util.Date createTime;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话", position = 4)
    private String phone;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", position = 5)
    private String password;

    /**
     * 绑定微信号
     */
    @ApiModelProperty(value = "绑定微信号", position = 6)
    private String wechatNo;

    /**
     * 名字
     */
    @ApiModelProperty(value = "名字", position = 7)
    private String name;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", position = 8)
    private Long gender;

    /**
     * 岗位id
     */
    @ApiModelProperty(value = "岗位id", position = 9)
    private Long organizeId;

    /**
     * 角色ids
     */
    @ApiModelProperty(value = "角色ids", position = 10)
    private String roleIds;

    /**
     * 头像
     */
    @ApiModelProperty(value = "头像", position = 11)
    private String attachFace;

    /**
     * 角色列表
     */
    @ApiModelProperty(value = "角色列表", position = 11)
    @TableField(exist = false)
    private List<Role> roleList;


}
